﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text.Json.Serialization;

namespace housingsafety.server.Entities.DataModels
{
    [Table("zm_pc_yhlog_dxzgson")]
    public partial class ZmPcYhlogDxzgson : Repository.IEntity
    {
        [Key]
        [StringLength(50)]
        [Column("id")]
        public string Id { get; set; }


        [Column("fwbh")]
        public string Fwbh { get; set; }

        [StringLength(100)]
        [Column("yhlog_dx_id")]
        public string YhlogDxId { get; set; }

        [StringLength(100)]
        [Column("check_id")]
        public string CheckId { get; set; }

        [StringLength(255)]
        [Column("check_name")]
        public string CheckName { get; set; }

        [StringLength(255)]
        [Column("zg_zt")]
        public string? ZgZt { get; set; }

        [Column("zg_zp", TypeName = "json")]
        public string? ZgZp { get; set; }

        [StringLength(50)]
        [Column("zg_time")]
        public string? ZgTime { get; set; }

        [StringLength(100)]
        [Column("zg_by")]
        public string? ZgBy { get; set; }

        [Column("fh_zt")]
        public int? FhZt { get; set; }

        [StringLength(2000)]
        [Column("fh_sm")]
        public string? FhSm { get; set; }

        [StringLength(100)]
        [Column("fh_time")]
        public string? FhTime { get; set; }

        [StringLength(100)]
        [Column("fh_by")]
        public string? FhBy { get; set; }

        [Column("create_on", TypeName = "timestamp")]
        public DateTime CreateOn { get; set; }

        [StringLength(255)]
        [Column("zglx")]
        public string? Zglx { get; set; }

        [StringLength(255)]
        [Column("jczt")]
        public string? Jczt { get; set; }

        [Column("zg_ddc_num")]
        public int? ZgDdcNum { get; set; }

        [Column("zg_yhsyq_num")]
        public int? ZgYhsyqNum { get; set; }
        [NotMapped] 
        public DateTime? ModifiedOn { get; set; }
        [NotMapped]
        public short? IsDelete { get; set; }
        [NotMapped]
        public DateTime? DeleteOn { get; set; }

    }
}
